/**
 * 授权 ip 地址段表 API
 * @author rxliuli
 */
const sysAuthIpSegApi = new class SysAuthIpSegApi extends BaseApi {
    constructor() {
        super('/api/sysAuthIpSeg')
    }

    async listForAll() {
        return (await rxajax.get(this.using('/list-for-all'))).data.data
    }

    async updateBatch(list) {
        return (await rxajax.post(this.using('/update/batch'), list, {type: 'json'})).data
    }
}()
